package origin.db.po;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Picture entity. @author MyEclipse Persistence Tools
 */

public class Picture implements java.io.Serializable {

	// Fields

	private Integer pictureid;
	private User user;
	private String username;
	private String picturename;
	private Timestamp uploadtime;
	private Long width;
	private Long height;
	private Long size;
	private String tag;
	private String path;
	private String backupath;
	private String state;
	private Boolean hascommentbasic;
	private Boolean hascommentfloat;
	private Integer clicks;
	private Set fcomments = new HashSet(0);
	private Set favourites = new HashSet(0);
	private Set bcomments = new HashSet(0);

	// Constructors

	/** default constructor */
	public Picture() {
	}

	/** minimal constructor */
	public Picture(Integer pictureid, User user) {
		this.pictureid = pictureid;
		this.user = user;
	}

	/** full constructor */
	public Picture(Integer pictureid, User user, String picturename,
			Timestamp uploadtime, Long width, Long height, Long size,
			String tag, String path, String backupath, String state,
			Boolean hascommentbasic, Boolean hascommentfloat, Integer clicks,
			Set fcomments, Set favourites, Set bcomments) {
		this.pictureid = pictureid;
		this.user = user;
		this.picturename = picturename;
		this.uploadtime = uploadtime;
		this.width = width;
		this.height = height;
		this.size = size;
		this.tag = tag;
		this.path = path;
		this.backupath = backupath;
		this.state = state;
		this.hascommentbasic = hascommentbasic;
		this.hascommentfloat = hascommentfloat;
		this.clicks = clicks;
		this.fcomments = fcomments;
		this.favourites = favourites;
		this.bcomments = bcomments;
	}

	// Property accessors

	public Integer getPictureid() {
		return this.pictureid;
	}

	public void setPictureid(Integer pictureid) {
		this.pictureid = pictureid;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public String getUsername() {
		return this.username;
	}
	
	public void setUsername(String user) {
		this.username = user;
	}

	public String getPicturename() {
		return this.picturename;
	}

	public void setPicturename(String picturename) {
		this.picturename = picturename;
	}

	public Timestamp getUploadtime() {
		return this.uploadtime;
	}

	public void setUploadtime(Timestamp uploadtime) {
		this.uploadtime = uploadtime;
	}

	public Long getWidth() {
		return this.width;
	}

	public void setWidth(Long width) {
		this.width = width;
	}

	public Long getHeight() {
		return this.height;
	}

	public void setHeight(Long height) {
		this.height = height;
	}

	public Long getSize() {
		return this.size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public String getTag() {
		return this.tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getBackupath() {
		return this.backupath;
	}

	public void setBackupath(String backupath) {
		this.backupath = backupath;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Boolean getHascommentbasic() {
		return this.hascommentbasic;
	}

	public void setHascommentbasic(Boolean hascommentbasic) {
		this.hascommentbasic = hascommentbasic;
	}

	public Boolean getHascommentfloat() {
		return this.hascommentfloat;
	}

	public void setHascommentfloat(Boolean hascommentfloat) {
		this.hascommentfloat = hascommentfloat;
	}

	public Integer getClicks() {
		return this.clicks;
	}

	public void setClicks(Integer clicks) {
		this.clicks = clicks;
	}

	public Set getFcomments() {
		return this.fcomments;
	}

	public void setFcomments(Set fcomments) {
		this.fcomments = fcomments;
	}

	public Set getFavourites() {
		return this.favourites;
	}

	public void setFavourites(Set favourites) {
		this.favourites = favourites;
	}

	public Set getBcomments() {
		return this.bcomments;
	}

	public void setBcomments(Set bcomments) {
		this.bcomments = bcomments;
	}

}